//
//  WWKUserView.m
//  weibo
//
//  Created by 王文景 on 16/7/6.
//  Copyright © 2016年 DP. All rights reserved.
//

#import "WWKUserView.h"

#import "WWKUserModel.h"
#import <SDWebImage/UIImageView+WebCache.h>

@interface WWKUserView()




@property (weak, nonatomic) IBOutlet UIImageView *profile_image_url;
/** 名字*/
@property (weak, nonatomic) IBOutlet UILabel *screen_name;

/** 简介*/
@property (weak, nonatomic) IBOutlet UILabel  *Description;
/** 粉丝数*/
@property (weak, nonatomic) IBOutlet UILabel *followers_count;
/** 关注数*/
@property (weak, nonatomic) IBOutlet UILabel * friends_count;
/** 微博*/
@property (weak, nonatomic) IBOutlet UILabel *statuses_count ;
@end

@implementation WWKUserView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)setDatum:(WWKUserModel *)datum
{
    _datum = datum;
    
    
    
    [self.profile_image_url sd_setImageWithURL:[NSURL URLWithString:datum.profile_image_url]];
    self.screen_name.text = datum.screen_name;
    self.Description.text = datum.description;
    self.followers_count.text = [NSString stringWithFormat:@"%d",datum.followers_count];
    self.friends_count.text = [NSString stringWithFormat:@"%d",datum.friends_count];
    self.statuses_count.text = [NSString stringWithFormat:@"%d",datum.statuses_count];
    
    
}
@end
